package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.Invoice;
import cn.itcast.domain.cargo.InvoiceExample;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 发票单业务层接口
 */
public interface InvoiceService {

    static void saveAll(List<Invoice> list) {
    }

    //分页查询
    PageInfo findAll(int page, int size, InvoiceExample example);

    //保存
    void save(Invoice invoice);

    //修改
    void update(Invoice invoice);

    //删除
    void delete(String id);

    //根据id查询
    Invoice findById(String id);


    List<Invoice> findAll(InvoiceExample example);
}
